package com.yanyu.space.sys.bean.po;


import com.baomidou.mybatisplus.annotation.TableName;
import com.yanyu.space.common.core.bean.db.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 系统角色
 * </p>
 *
 * @author yanyu
 */
@Data
@TableName("sys_role")
@ApiModel(value = "Role对象", description = "系统角色")
public class Role extends BaseEntity {

    @ApiModelProperty(value = "角色编码")
    private String code;

    @ApiModelProperty(value = "角色名")
    private String name;

    @ApiModelProperty(value = "数据范围 1:本人，2：本部门，3：本部门及下级部门，4：全部，5：自定义数据权限")
    private Integer dataScope;

    @ApiModelProperty(value = "启用状态, 1：启用；0：禁用")
    private Integer enabled;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "部门树选择项是否关联显示")
    private Integer deptCheckStrictly;

    @ApiModelProperty(value = "菜单树选择项是否关联显示")
    private Integer menuCheckStrictly;
}
